package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.mapper.MybatisIntegerHandler;
import com.example.makerspace.mapper.MybatisListHandler;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import  java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_expert_task", autoResultMap = true)
public class ExpertTaskDO extends  BaseDO{
    private  String  startTime;
    private  String  endTime;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="username", type = FieldType.Text, analyzer="ik_max_word")
    private  List<String>  username;
    private  String  taskContent;
    private  Integer productId;
    private  Integer isFinish;
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name="name", type = FieldType.Text, analyzer="ik_max_word")
    private  List<String> name;
    private  Integer isReceive;
    private  String productName;
    private  String title;
    @TableField(typeHandler = MybatisIntegerHandler.class)
    @Field(name="outcome_id", type = FieldType.Text, analyzer="ik_max_word")
    private  List<Integer> outcomeId;

}
